<link href="<?php echo CSS_User_URL; ?> /Profile_style.css" rel="stylesheet" type="text/css">                 

<section id="profile_cover" class="cover center-child">
    <div class="home_article">
        <div id="profile_image" class="image_parent">
            <a>
                <img src="<?php echo Yii::app()->baseUrl; ?>/images/ProfileImage/<?php echo $NguoiDung->Avatar; ?>" alt="Ideawebsite.com">
            </a>
        </div>
        <table id="profile_info">
            <?php
            if (!empty($NguoiDung->BiDanh) && !is_null($NguoiDung->BiDanh)) {
                ?>
                <tr>
                    <td colspan="2">
                        <h1 id="profile_info_name"><?php echo $NguoiDung->BiDanh; ?></h1>
                    </td>
                </tr>
                <?php
            }
            ?>

            <?php
            if (!empty($NguoiDung->Slogan) && !is_null($NguoiDung->Slogan)) {
                ?>
                <tr>
                    <td colspan="2">
                        <h2 id="profile_info_slogan"><?php echo $NguoiDung->Slogan; ?></h2>
                    </td>
                </tr>
                <?php
            }
            ?>

            <?php
            if (!empty($NguoiDung->NgaySinh) && !is_null($NguoiDung->NgaySinh)) {
                ?>
                <tr>
                    <td id="age_info" class="label_base">Tuổi: </td>
                    <td class="label_base"><?php
                        $NgaySinh = CDateTimeParser::parse($NguoiDung->NgaySinh, 'yyyy-MM-dd');
                        echo date('Y') - date('Y', $NgaySinh);
                        ?></td>
                </tr>
                <?php
            }
            ?>

            <?php
            if (!empty($NguoiDung->DiaChi) && !is_null($NguoiDung->DiaChi)) {
                ?>
                <tr>
                    <td id="location_info" class="label_base">Địa chỉ: </td>
                    <td class="label_base"><?php echo $NguoiDung->DiaChi; ?></td>
                </tr>
                <?php
            }
            ?>           
            <?php
            if (!empty($NguoiDung->NgayDangKy) && !is_null($NguoiDung->NgayDangKy)) {
                ?>
                <tr>
                    <td id="begin_info" class="label_base">Ngày tham gia: </td>
                    <td class="label_base"><?php
                        $NgayDangKy = CDateTimeParser::parse($NguoiDung->NgayDangKy, 'yyyy-MM-dd hh:mm:ss');
                        echo date('d - M - Y', $NgayDangKy);
                        ?></td>
                </tr>
                <?php
            }
            ?>     
            <?php
            if (!empty($NguoiDung->UyTin) && !is_null($NguoiDung->UyTin) && ($NguoiDung->UyTin > 0)) {
                ?>
                <tr>
                    <td id="reputation_info" class="label_base">Uy tín: </td>
                    <td>
                        <div id="reputation_bar">
                            <div class="reputation_value">
                                <div class="avalible_value" style="flex: <?php echo $NguoiDung->UyTin; ?>">
                                    <span><?php echo $NguoiDung->UyTin; ?></span>
                                </div>
                                <div class="another_value" style="flex: <?php echo 100 - $NguoiDung->UyTin; ?>">
                                    <span></span>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <?php
            }
            ?>  
        </table>

    </div>
</section>

<section class="home_wrapper">

    <nav id="profile_option" class=" center-child">
<!--        <a href="Profile.html" class="center-child"><span>Lịch sử <br>hoạt động</span></a>
        <a href="Account_setting.html" class="center-child"><span>Thiết lập <br>tài khoản</span></a>
        <a href="Account_fields.html" class="center-child"><span>Lĩnh vực <br>theo dõi</span></a>
        <a href="Friends_List.html" class="center-child"><span>Danh sách <br>bạn bè</span></a>-->
        <?php echo CHtml::ajaxLink("<span>Thông báo</span>", array("User/ProfileNotification"), array('update' => '#subContent'), array('class' => 'center-child')); ?>
        <?php echo CHtml::ajaxLink("<span>Thiết lập <br>tài khoản</span>", array("User/ProfileSetting"), array('update' => '#subContent'), array('class' => 'center-child')); ?>
        <?php echo CHtml::ajaxLink("<span>Lĩnh vực <br>theo dõi</span>", array("User/ProfileFields"), array('update' => '#subContent'), array('class' => 'center-child')); ?>
        <?php echo CHtml::ajaxLink("<span>Danh sách <br>bạn bè</span>", array("User/ProfileFriends"), array('update' => '#subContent'), array('class' => 'center-child')); ?>
    </nav>
</section>

<div class="home_wrapper" id="subContent">
    <?php echo $profile_subContent; ?>
</div>